package cn.cloud9.designpattern.dp02factory.abstractfactory;

import cn.cloud9.designpattern.dp02factory.abstractfactory.factory.CourseFactory;
import cn.cloud9.designpattern.dp02factory.abstractfactory.factory.JavaCourseFactory;

/**
 * @author OnCloud9
 * @description
 *  https://www.bilibili.com/video/BV1L5411R7BP?p=4
 *  抽象工厂模式(Abastract Factory Pattern) 是指提供一一个创建系列相关或相互依赖对象的接口，无须指定他们具体的类。
 * @project Java
 * @date 2022年05月22日 10:34
 */
public class AbstractFactory {

    public static void main(String[] args) {
        CourseFactory courseFactory = new JavaCourseFactory();
        courseFactory.createDocument().edit();
        courseFactory.createVideo().record();
    }
}
